{%  extends "base.html"  %}

{% block mainbody %}
<div>
	<h3>修改相册信息</h3>
<form action="{% url 'updatepic' %}" enctype="multipart/form-data" method="post">
    <input type="hidden" name="id" value="{{ pic.id }}"/>
    <input type="hidden" name="oldname" value="{{ pic.picname }}"/>
	{% csrf_token %}
	
	<table class="container">
		<tr>
			<td>标题：</td>
			<td><input type="text" name="name",value="{{ pic.name }}"></td>

		</tr>

		<tr>
			
			<td>图片：</td>
			<td><input type="file" name="mypic"></td>
		</tr>

		<tr>
			<td colspan="2" align="center">
				<input type="submit" name="添加">
				<input type="reset" name="重置">
			</td>

		</tr>


	</table>


</form>


</div>

{% endblock %}